Skip to content

upstream to fork#4

Merged
cuipengfei merged 11 commits into
cuipengfei:masterfrom
ericc-ch:master
Aug 27, 2025
Merged

upstream to fork#4
cuipengfei merged 11 commits into
cuipengfei:masterfrom
ericc-ch:master

Conversation

@cuipengfei

Copy link
Copy Markdown
Owner

upstream to fork

cuipengfei and others added 11 commits August 23, 2025 20:59
Fix hardcoded token counts in streaming responses
- Add CI workflow that runs on pushes to master and PR events
- Include PR synchronization trigger as requested
- Run linting, type checking, tests, and build steps
- Use Bun setup consistent with existing release workflow
- Fix branch name to use 'master' instead of 'main'
- Add missing newlines in build commands section
- Improve readability of documentation
Remove border-radius overrides and implement circular border styling
for the loading spinner to display correctly as a rotating circle
instead of a square or rounded rectangle.
- Add Copilot API Usage Dashboard as static HTML page
- Include interactive UI with loading spinner and data visualization
- Add GitHub Actions workflow for automatic Pages deployment
- Configure OpenCode MCP with Playwright for testing
Copilot AI review requested due to automatic review settings August 27, 2025 10:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR appears to be syncing changes from an upstream repository to a fork, updating build tools, dependencies, and adding new features including a usage dashboard page and GitHub Actions workflows.

  • Migrates from tsup to tsdown build tool across configuration and package files
  • Adds comprehensive usage tracking with token details and cache information to API responses
  • Introduces a new HTML dashboard for visualizing API usage quotas

Reviewed Changes

Copilot reviewed 11 out of 12 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tsdown.config.ts Changes build tool import from tsup to tsdown
tests/create-chat-completions.test.ts Adds TypeScript error suppression comment for mock fetch
src/services/copilot/create-chat-completions.ts Extends ChatCompletionChunk interface with detailed usage tracking
src/routes/messages/stream-translation.ts Updates usage token mapping to use actual chunk data instead of hardcoded values
src/routes/messages/anthropic-types.ts Expands usage interface to include input tokens and cache metrics
pages/index.html Adds complete HTML dashboard for API usage visualization
package.json Updates version, dependencies, and build script to use tsdown
opencode.json Replaces context7 MCP configuration with playwright setup
AGENTS.md Fixes formatting issues in markdown documentation
.github/workflows/deploy-pages.yml Adds GitHub Pages deployment workflow
.github/workflows/ci.yml Adds continuous integration workflow

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread .github/workflows/ci.yml

on:
push:
branches: [master]

Copilot AI Aug 27, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The branch name 'master' is inconsistent with the deploy-pages.yml workflow which uses 'main'. This should be 'main' to match the actual default branch.

Suggested change
branches: [master]
branches: [main]

Copilot uses AI. Check for mistakes.
@cuipengfei cuipengfei merged commit 57128af into cuipengfei:master Aug 27, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants